<?php


namespace app\controller;


use app\BaseController;

class Demo extends BaseController
{
    public function demo() {

        $result = [
            "name" => "test",
            "age" => 34
        ];
        return json($result);
    }
}